//
//  DataHandel.h
//  StationManager
//
//  Created by 泽华伟业 on 17/3/7.
//  Copyright © 2017年 Helong. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^GETDATABLOCK)(id object);
@interface DataHandel : NSObject

+ (DataHandel *) sharedDataHandel;

#pragma mark -- 获取全部站点信息
- (void)getAllStationInfoListWIthBlock:(GETDATABLOCK)allStationBlock;

#pragma mark -- 获取温度信息
- (void)getTemperatureDataWithBlock:(GETDATABLOCK)temperatureData;

#pragma mark -- 获取降水数据
- (void)getRainDataWithHour:(int)hour Block:(GETDATABLOCK)rainDataBlock;

#pragma mark -- 获取某个站点数据信息（气温、降水、风等）
- (void)getStationDataByStationNum:(NSString *)stationNum ElementType:(NSString *)element showNumber:(int)number StationBlock:(GETDATABLOCK)stationDataBlock;

#pragma mark -- 获取下达维护任务的站点信息
- (void)getTaskStationWith:(NSArray *)paramsArray success:(void (^)(id responseObject))successData;

#pragma mark -- 获取leiDaSum
- (void)getLeiDaSumDataWithBlock:(GETDATABLOCK)leiDaBlock;

#pragma mark -- 获取leiDa
- (void)getLeiDaDataWithNum:(int)num Block:(GETDATABLOCK)numBlock;

#pragma mark -- 用户登录检测
- (void)userLoginAndGetUserInfoByUserName:(NSString *)userName Password:(NSString *)password Block:(GETDATABLOCK)loginBlock;

#pragma mark -- 下达运维任务
- (void)addMaintainTaskWithStationNum:(NSString *)stationNum userID:(NSString *)userID  taskType:(NSString *)type remarks:(NSString *)remark Block:(GETDATABLOCK)addTaskBlock;

#pragma mark -- 获取台站状态
- (void)getStationStatusWithBlock:(GETDATABLOCK)stationStatusBlock;

@end
